{% extends 'stream/user/settings/base.html' %}

{% block prefs %}

{% if messages %}
<ul class="messages">
	{% for message in messages %}
	<li>{{ message }}</li>
	{% endfor %}
</ul>
{% endif %}

<h2>Manage your friends</h2>
<div id="object_tools"><a href="add/" class="addlink">Add friend</a></div>
{% if friends_list %}
<table id="feeds_list" class="obj_list" cellspacing="0">
	<thead>
		<tr>
			<th>Friend</th>
		</tr>
	</thead>

	{% for friend in friends_list %}
		<tr class="{% cycle row1,row2 %}">
			<td><a href="/u/{{ friend.username }}" />{{ friend.username }}</a></td>
			<td><a href="{{ friend.id }}/remove/">remove</a></td>
		</tr>
	{% endfor %}
</table>
{% else %}
<p>You haven't added any friends, don't dispair you can <a href="add/">add</a> one</p>
{% endif %}

{% endblock %}
